package com.zxw.设计模式.结构型.代理模式.JDK代理.静态代理.service;

import com.zxw.设计模式.结构型.代理模式.JDK代理.静态代理.service.impl.UserServiceImpl;
import com.zxw.设计模式.结构型.代理模式.JDK代理.静态代理.proxy.UserServiceProxy;

/**
 * @projectName: util-cloud
 * @package: com.zxw.设计模式.结构型.代理模式.JDK代理.静态代理.service
 * @className: StaticProxyTest
 * @author: zhangxuewei
 * @description: TODO
 * @date: 2023/6/12 17:46
 * @version: 1.0
 */
public class StaticProxyTest {


    public static void main(String[] args) {
        IUserService userService = new UserServiceImpl();
        UserServiceProxy userServiceProxy = new UserServiceProxy(userService);
        String name = userServiceProxy.save();
        System.out.println(name);
    }

}
